package com.comm.service;

import java.util.List;
import java.util.Map;

public interface BaseServer {
	/**
	 *添加
	 * @param entity
	 * @return
	 */
	public Object insert(String sqlname,Object parameterObject);
	/**
	 *删除
	 * @param entity
	 * @return
	 */
	public Integer delete(String sqlName, Object parameterObject);
	/**
	 *修改
	 * @param entity
	 * @return
	 */
	public Integer update(String sqlName, Object parameterObject);
	/**
	 *查询
	 * @param entity
	 * @return
	 */
	public List<?> select(String sqlName, Object parameterObject);
	public List<?> select(String sqlName, Map<String, Object> parameterObject);
	/**
	 *查询单个
	 * @param entity
	 * @return
	 */
	public Object findBy(String sqlName, Object parameterObject);
	public Object findBy(String sqlName, Map<String, Object> parameterObject);
	
}
